Hello,
Of course you are right, that it's AdminHelp matter.
And there is one page info in AdminHelp saying to create Directory Rule
with:
Enter :/php-bin in 'Incoming URL pattern'
" An example of an incoming URL would be: http://<server>/php-bin/PHP.EXE/<php-scripts> "
and "Enter the location of the PHP binary file (for example, c:\PHP)" in 'Target server directory' field.
An example is for sure wrong, it will always give you: "No input file specified. " (try yourself) I finally discovered correct URL, which is:
http://localhost/php-bin/PHP.EXE/?foo.php
(character ? is in accordance with general Domino URL rule, that characters after ? are passed as operation on the object. So I assume this is just an error in Help, but very frustrating one, for somebody trying it for the first time)
but it works only if foo.php is in your php.exe directory!. Which is unacceptable, because it's great security hole. This way anybody can send any php script in URL. The idea of putting php.exe anywhere on path accessible from a browser and using URL with php.exe inside is crazy!
Anyway in big book about Notes development, you 'could' mention about other web script languages, couldn't you? Is Domino a web server or not?
Second, you are not true saying that PHP is for years with Domino. Excuse me ????!!! It was impossible to run PHP on R5 ! Unless you know the secret and can share it with us ?
When you would spend one day for searching the net (like I did), you'll find in first place note in Notes KB saying it's impossible in R5, and later some people claims they did, but without direct instructions. One man from my home city (Warsaw, Poland) change something in PHP source code, compiled himself and it works for him. Lucky guy! :)) Others say putting php4isapi.dll in DSAPI field in server document is the trick, but this doesn't work for me :( (poor me, try yourself) and it interfere for sure with iNotes functionality (iNotes require it's dll in this field).
I believe that maybe it is working now in R6 on Linux platform (with some additional trick found in that forum - but about that trick - it's new function build in PHP 4.2 or 4.3, it's enough to change cgi.force_redirect line to 0 in php.ini, I think).
But after 3 days spend on that subject I will for sure not use crazy idea of URL with php.exe inside. I found my own work-around. Domino is supporting Perl for quite some time. I don't need Perl, I need PHP. So why not to swap them? I checked, and it works! Just copy php.exe to perl.exe, copy *.php to *.pl, set PERLBIN environment, and you are home!
No stupid rules, no stupid php.exe in your usl's and you can have one site with all you need! I'm in heaven! :))
If you need Perl... well you can always install Apache or Xitami on another port of your server :)) or use IIS stack :)
But seriously, if anybody can post clean instruction how it is possible to have *.php file run from your wwwroot (domino\html for example) folder on Domino R6 on Win2000, I would appreciate.
And I think some other people too.